home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / makefile.sgi < prev    next >
Makefile  |  1996-03-14  |  2KB  |  85 lines

  1. # $Id: makefile.sgi,v 4.7 1996/03/15 07:41:11 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for IRIX 4.0.1 version of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29. # Need CFLAGS with -cckr on SGI since cc is now ANSI-cc
  30.  
  31. #includes symbols for debugging
  32. DASHO=        -g
  33. #for normal build
  34. #DASHO=        -O
  35.  
  36. STDCFLAGS=    -cckr -Dsgi -DJOB_CONTROL -DMOUSE
  37. CFLAGS=        $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
  38.  
  39. # switches for library building
  40. LIBCMD=ar
  41. LIBARGS=ru
  42. RANLIB=/bin/true
  43.  
  44. LIBS=        $(EXTRALIBES) -ltermcap -lsun -lc
  45.  
  46. OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  47.         composer.o display.o file.o fileio.o line.o osdep.o \
  48.         pico.o random.o region.o search.o spell.o tinfo.o window.o word.o
  49.  
  50. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  51.         composer.c display.c file.c fileio.c line.c osdep.c \
  52.         pico.c random.c region.c search.c spell.c tinfo.c window.c word.c
  53.  
  54. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h osdep.h
  55.  
  56. #
  57. # dependencies for the Unix versions of pico and libpico.a
  58. #
  59. all:        pico pilot
  60.  
  61. osdep.c:    os_unix.c
  62.         rm -f osdep.c
  63.         cp os_unix.c osdep.c
  64.  
  65. osdep.h:    os_unix.h
  66.         rm -f osdep.h
  67.         cp os_unix.h osdep.h
  68.  
  69. libpico.a:    osdep.c osdep.h $(OFILES)
  70.         $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
  71.         $(RANLIB) libpico.a
  72.  
  73. pico:        main.c libpico.a
  74.         $(CC) $(CFLAGS) main.c libpico.a $(LIBS) -o pico
  75.  
  76. pilot:        pilot.c libpico.a
  77.         $(CC) $(CFLAGS) pilot.c libpico.a $(LIBS) -o pilot
  78.  
  79. .c.o:        ; $(CC) -c $(CFLAGS) $*.c
  80.  
  81. $(OFILES):    $(HFILES)
  82.  
  83. clean:
  84.         rm -f *.a *.o *~ osdep.c osdep.h
  85.